import { post, get } from "./request";

const hostname = (window.location.hostname);
// const urlParams = new URLSearchParams(window.location.href.split("?")[1]);
// const agentParams = {};
// urlParams.forEach((value, key) => {
//   agentParams[key] = value;
// });
// let list = agentParams.agentUrl.split("/");
// let agentUrl = list.splice(3).join('/')
// if(hostname=='127.0.0.1'){
 let agentUrl = 'api/agent/chat'
// }

// 发送问题接口
export const agentChat = (params) =>
  post(
    // agentUrl,
    '/agent/chat',
    params
  );


  export const abcd = (params)=>{
    post('/dc/addDcBootCode',params)
  }